﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="BMCWebJS._Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <script src="Scripts/jquery-1.4.2.js" type="text/javascript"></script>
    <script language="javascript">
        function changeTitle(pageTitle) {
            $('.title', '.DIVPopupTitleBar').text(pageTitle);
        }
    </script>
    <script language="javascript">
        function ReplaceRowSeperator(str) {
            var i;
            var result = "";
            var c, c1, c2, c3;
            for (i = 0; i < str.length; i++) {
                c = str.substr(i, 1);
                c1 = str.substr(i + 1, 1)
                c2 = str.substr(i + 2, 1)
                c3 = str.substr(i + 3, 1);
                if (c == ";" && c1 == ";" && c2 == ";" && c3 == ";") {
                    result = result + "\n";
                    i = i + 3;
                }
                else if (c != "\r") {
                    result = result + c;
                }
            }
            return result;
        }
        function beautifulNotes() {
            try {
                if ($("#arid536871174").is(":visible")) {
                    var value = $("#arid536871091").val();
                    if (value.length != 0) {
                        var formateValue = ReplaceRowSeperator(value);
                        $("#arid536871174").val(formateValue);
                    }
                }
            }
            catch (err) {
            }
        }
    </script>
    <script language="javascript">
        function clickChangeTheMenuColor() {
            $(".VNavLevel2", ".arfid861000100").click(function () {
                $(".VNavLevel2", ".arfid861000100").each(function () {
                    if ($(this).css("background-color") != "rgb(244, 244, 244)") {
                        $(this).css("background-color", "rgb(244, 244, 244)");
                    }
                });
                $(this).css("background-color", "rgb(160, 200, 225)");
            });
        }

        function ReplaceSeperator(mobiles) {
            var i;
            var result = "";
            var c;
            for (i = 0; i < mobiles.length; i++) {
                c = mobiles.substr(i, 1);
                if (c == ";" || c == "," || c == "，" || c == "\n")
                    result = result + "\n";
                else if (c != "\r")
                    result = result + c;
            }
            return result;
        }

        function ReplaceSeperator1(mobiles) {
            var i;
            var result = "";
            var c;
            for (i = 0; i < mobiles.length; i++) {
                c = mobiles.substr(i, 1);
                if (c == ";" || c == "," || c == "，" || c == "\n")
                    result = result + "；";
                else if (c != "\r")
                    result = result + c;
            }
            return result;
        }

        function ReplaceRowSeperator(str) {
            var i;
            var result = "";
            var c, c1, c2, c3;
            for (i = 0; i < str.length; i++) {
                c = str.substr(i, 1);
                c1 = str.substr(i + 1, 1)
                c2 = str.substr(i + 2, 1)
                c3 = str.substr(i + 3, 1);
                if (c == ";" && c1 == ";" && c2 == ";" && c3 == ";") {
                    result = result + "\n";
                    i = i + 3;
                }
                else if (c != "\r") {
                    result = result + c;
                }
            }
            return result;
        }
        if ($(this).is(".arfid536870930 ")) {
            setFieldValue('820427001', 1);
        }
        else {
            setFieldValue('820427001', 0);
        }

        function clickChangeTheMenuColor() {
            $(".VNavLevel2", ".arfid861000100").click(function () {
                $(".VNavLevel2", ".arfid861000100").each(function () {
                    if ($(this).css("background-color") != "rgb(244, 244, 244)") {
                        $(this).css("background-color", "rgb(244, 244, 244)");
                    }
                });
                if ($(this).is(".arfid536870930 ")) {
                    setFieldValue('820427001', 1);
                }
                else {
                    setFieldValue('820427001', 0);
                }
                $(this).css("background-color", "rgb(160, 200, 225)");
            });
        }
        function setFieldValue(fieldID, value) {
            F(fieldID).S('');
            F(fieldID).S(value);

            return false;
        }
        $(document).ready(function () {

            try {

                var value = "dd";
                var y = ReplaceRowSeperator("d;;;;dddd");
                $("#arid536871174").val(y);
                //                var txt = "sjfisjfisdjfijsidfjioalfjewofjjgs";
                //                var x = txt.replace(/i/g, "5");
                //                var x = "dddd";
                //                var object = ReplaceSeperator($("#arid536871091").text().toString());
                //                $("#arid536871174").val(object);

                //                var result = object.replace("/i/g", "Hello");
                //                var object1 = $("#arid536871091").val().replace("/jibin/g", "Hello");
                //                $("#arid536871174").val($("#arid536871091").val().replace("/jibin/g", "Hello"));
                //                var y = $("#arid536871174").val();
                var z = "ddd";
            }
            catch (err) {

                var erro = err;
                var x = 1;
            }
        });
       
    </script>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        Welcome to ASP.NET!
    </h2>
    <p>
        To learn more about ASP.NET visit <a href="http://www.asp.net" title="ASP.NET Website">
            www.asp.net</a>.
    </p>
    <p>
        You can also find <a href="http://go.microsoft.com/fwlink/?LinkID=152368&amp;clcid=0x409"
            title="MSDN ASP.NET Docs">documentation on ASP.NET at MSDN</a>.
    </p>
    <label style="width: 81px; height: 44px; top: 4px; left: 0px" id="label536871174"
        class="label f1 do" for="x-arid536871174">
        Notes:</label><textarea style="width: 484px; height: 48px; top: 0px; left: 85px"
            id="arid536871174" class="text " rows="3" readonly arautoctt="400" arautocak="0"
            maxlen="2048" hasfocus="true"></textarea>
    <label style="width: 34px; height: 44px; top: 4px; left: 0px" id="label536871091"
        class="label f6" for="x-arid536871091">
        Notes:</label><textarea style="width: 484px; height: 47px; top: 0px; left: 85px"
            id="arid536871091" class="text " rows="3" readonly arautoctt="400" arautocak="0"
            maxlen="2048">    4/24/2012 10:25:20 AM    jibin wang    Ask For More: fsdfsdfsdfsdfsdfsdfdsfdsfds;\n        4/24/2012 10:27:11 AM    jibin wang    Ask For More: fsdfdsfds;        4/24/2012 11:06:11 AM    jibin wang    Ask For More: fsdfdsfsdfds;        4/24/2012 11:41:40 AM    jibin wang    Ask For More: nfadsiofhwkqen fdsaiofhnsdairsafsdafsd;        4/24/2012 11:42:26 AM    jibin wang    Ask For More: rrrrrrrrrrrrrrrrrrrrrrrrrrrrr;        4/24/2012 11:43:15 AM    jibin wang    Reject: fweeeeeeeeeeeeeeeeeeee;        4/24/2012 11:44:48 AM    jibin wang    Ask For More: fsdddddddddddddddddddd;    </textarea>
</asp:Content>
